var express = require('express');
var router = express.Router();
const UserEntity = require("../models/User").UserEntity;
const log = require('../utils/logUtil').log();
/* GET home page. */
router.get('/', function (req, res, next) {
    // res.render('index', {title: 'Express'});
    let user = new UserEntity({name: '123', pwd: '123'});
    user.save(function (err, user) {
        if (err) {
            log.error('数据库错误')
        } else {
            log.debug(user)
        }
    });
    res.end();
});

module.exports = router;
